﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;


namespace RandomStudent.Entity
{
    [Serializable]
    public class Student
    {
        private int num;

        public int Num
        {
            get { return num; }
            set { num = value; }
        }

        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string sex;

        public string Sex
        {
            get { return sex; }
            set { sex = value; }
        }

    }

    [XmlRootAttribute("MyClass", Namespace = "RandomStudent.Entity", IsNullable = false)]
    public class MyClass {
        [XmlArrayAttribute("Students")]
        public List<Student> Students;

    }
}
